package org.example.demo1.Service;

import org.example.demo1.DAO.StudentDAO;
import org.example.demo1.entity.Student;

import java.util.List;

public class StudentService {
    private StudentDAO studentDAO = new StudentDAO();
    public List<Student> getStudentsByPage(int pageNum) {
        return studentDAO.getStudentsByPage(pageNum);
    }
    public int getTotalCount() {
        return studentDAO.getTotalCount();
    }
}
